-- GENERATED SPELL FOR [Dalin Forgewright] --


function spell0_5682(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(2054,pUnit)
pUnit:RegisterEvent('Sorts_5682', 3000, 1)
end

function spell1_5682(pUnit, Event) --@Renew,n/a--
pUnit:FullCastSpellOnTarget(6075,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5682', 15000, 1)
end

function Sorts_5682(pUnit, Event)
local choix_sorts_5682 = math.random(0, 1)
if choix_sorts_5682 == 0 then
pUnit:RegisterEvent('spell0_5682', 1, 1)
end
if choix_sorts_5682 == 1 then
pUnit:RegisterEvent('spell1_5682', 1, 1)
end
end

function mob5682_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5682', math.random(1500, 3000), 1)
end

function mob5682_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5682_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5682_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5682, 1, 'mob5682_Action')
RegisterUnitEvent(5682, 2, 'mob5682_Leave')
RegisterUnitEvent(5682, 3, 'mob5682_Kill')
RegisterUnitEvent(5682, 4, 'mob5682_Die')
